<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Changelog</title>
    <copyright>All rights reserved</copyright>
    <link><%= Routes.post_url(@conn, :index) %></link>
    <language>en-us</language>
    <description>Changelog Posts</description>
  <%= for post <- @posts do %>
    <item>
      <title><%= escaped(post.title) %></title>
      <dc:creator><%= post.author.name %></dc:creator>
      <link><%= Routes.post_url(@conn, :show, post.slug) %></link>
      <guid isPermaLink="false"><%= PostView.guid(post) %></guid>
      <pubDate><%= TimeView.rss(post.published_at) %></pubDate>
      <description><![CDATA[<%= SharedHelpers.md_to_html(post.body) %>]]></description>
    </item>
  <% end %>
  </channel>
</rss>
